package com.usabb.domain;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * <pre>
 * 标签关联表
 * </pre>
 * <small> 2019-08-19 18:03:26 | Aron</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("label_relation")
public class LabelRelationDO {
    @TableId
    private Long id;

    private String bizType;
    /**
     * 月子中心 or 民宿 id
     */
    private Long bizId;

    /**
     * 配套 id
     */
    private Long labelId;



    public static LabelRelationDO of(Long bizId, Long labelId) {
        LabelRelationDO relationDO = new LabelRelationDO();
        relationDO.setBizId(bizId);
        relationDO.setLabelId(labelId);

        return relationDO;
    }

}
